<html><head><title>component.html.utils.template.Loader</title><link rel="stylesheet" type="text/css" href="../../../../../styles/main.css"><link rel="stylesheet" type="text/css" href="../../../../../styles/prettify.css"><script language=JavaScript src="../../../../../javascript/prettify.js"></script><script language=JavaScript src="../../../../../javascript/main.js"></script></head><body class="FramedContentPage" onLoad="{NDOnLoad();prettyPrint();}"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.4 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="component.html.utils.template.Loader"></a>component.<wbr>html.<wbr>utils.<wbr>template.<wbr>Loader</h1><div class=CBody><p>Utility class for loading &amp; parsing a template.</p><p>See <a href="Parser-js.html#component.html.utils.template.Parser" class=LClass id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">component.html.utils.template.Parser</a> for more information of the structure and behaviour of templates</p><h4 class=CHeading>usage</h4><blockquote><pre class="prettyprint">var parserInstance = new component.html.utils.template.Parser(domEventManagerInstance);

var loader = new component.html.utils.template.Loader();
var parsedTemplate = loader.loadTemplate(&quot;pathToTemplate&quot;, parserInstance, templateHandlerInstance);</pre></blockquote><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#component.html.utils.template.Loader" >component.<wbr>html.<wbr>utils.<wbr>template.<wbr>Loader</a></td><td class=SDescription>Utility class for loading &amp; parsing a template.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#component.html.utils.template.Loader.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#component.html.utils.template.Loader.Template" >Template</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#component.html.utils.template.Loader.loadTemplate" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">loadTemplate</a></td><td class=SDescription></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="component.html.utils.template.Loader.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="component.html.utils.template.Loader.Template"></a>Template</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="component.html.utils.template.Loader.loadTemplate"></a>loadTemplate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadTemplate : function(</td><td class=PParameter nowrap>path,</td></tr><tr><td></td><td class=PParameter nowrap>parser,</td></tr><tr><td></td><td class=PParameter nowrap>templateHandler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadTemplate : function(</td><td class=PParameter nowrap>path,</td></tr><tr><td></td><td class=PParameter nowrap>parser,</td></tr><tr><td></td><td class=PParameter nowrap>templateHandler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt2"><div class=CClass>Utility class resposible for parsing string value and replacing any {{placeholder}} variables with those defined in handlerInstance.</div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>